<!--  -->
<template>
  <div class="detail_swipe">
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="#8b0000">
      <van-swipe-item v-for="item in detailSwipe" :key="item.id">
        <img :src="item.img_url" alt="">
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
import {defineComponent} from 'vue'
export default defineComponent({
  name: 'DetailSwipe',
  props: {
    detailSwipe: {
      type: Array,
      default() {
        return []
      }
    }
  }
})
</script>

<style lang="scss" scoped>
  .detail_swipe {
    width: 100%;
    height: 750px;
  }
  .my-swipe {
    width: 100%;
    height: 100%;
  }
  img {
    width: 100%;
    height: 100%;
  }
</style>